/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.eng.scc.core.data;

import java.sql.Date;

/**
 *
 * @author Rafael
 */
public class Filling extends Skeleton
{
    private int freightId;
    private double quantity;
    private String km = "";
    private String locale = "";
    private Date date;
    private double avg;
    private double literPrice;

    public int getFreightId()
    {
        return freightId;
    }

    public void setFreightId( int freightId )
    {
        this.freightId = freightId;
    }

    public double getQuantity()
    {
        return quantity;
    }

    public void setQuantity( double quantity )
    {
        this.quantity = quantity;
    }

    public String getKm()
    {
        return km;
    }

    public void setKm( String km )
    {
        this.km = km;
    }

    public String getLocale()
    {
        return locale;
    }

    public void setLocale( String locale )
    {
        this.locale = locale;
    }

    public Date getDate()
    {
        return date;
    }

    public void setDate( Date date )
    {
        this.date = date;
    }

    public double getAvg()
    {
        return avg;
    }

    public void setAvg( double avg )
    {
        this.avg = avg;
    }

    public double getLiterPrice()
    {
        return literPrice;
    }

    public void setLiterPrice( double literPrice )
    {
        this.literPrice = literPrice;
    }
    
    @Override
    public String toString()
    {
        return "Freight: " + this.freightId + " - Quant: " + this.quantity;
    }

    @Override
    public boolean equals( Object obj )
    {
        if ( obj == null )
        {
            return false;
        }
        if ( getClass() != obj.getClass() )
        {
            return false;
        }
        final Filling other = ( Filling ) obj;
        if ( this.getId() != other.getId() )
        {
            return false;
        }
        return true;
    }
}
